package com.xrx.service;

import com.xrx.dao.UserMapper;
import com.xrx.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("testService")
public class TestService {
    @Autowired
    private UserMapper userMapper;

    /**
     * 查询所有
     * @return
     */
    public List<User> findUserList(){
        return userMapper.findUserList();
    }

    /**
     * 新增
     * @param user
     */
    public void insertUser(User user){
        userMapper.insertSelective(user);
    }
}
